import request from '@/utils/request'

const api_name = '/act/processInstance'

export default {

  getPageList(pageNum, pageSize, obj) {
    return request({
      url: `${api_name}/getInstances/${pageNum}/${pageSize}`,
      method: 'get',
      params: obj
    })
  },
  suspendInstance(par) {
    return request({
      url: `${api_name}/suspendInstance`,
      method: 'get',
      params: par
    })
  },
  resumeInstance(par) {
    return request({
      url: `${api_name}/resumeInstance`,
      method: 'get',
      params: par
    })
  },
  removeData(par) {
    return request({
      url: `${api_name}/deleteInstance`,
      method: 'get',
      params: par
    })
  }

}
